home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MCL Related / User Contributions / Conquest 1.1.sea / Conquest 1.1 / PLAYERS / rjk1-player / attack.lisp < prev    next >
MacBinary  |  1993-02-14  |  1.5 KB  |  [TEXT/CCL2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Feb 14 17:41:07 1993, modified Sun Feb 14 17:41:07 1993, creator Common Lisp 2, type ASCII, 779 bytes "attack.lisp" , at 0x38b 463 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CCL2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 61 74 74 61 63 6b | 2e 6c 69 73 70 00 00 00 |..attack|.lisp...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 03 0b 00 | 00 01 cf a7 a4 7b 03 a7 |........|.....{..|
|00000060| a4 7b 03 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.{......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4f 8b 00 00 |........|....O...|
|00000080| 3b 3b 3b 20 61 74 74 61 | 63 6b 2e 6c 69 73 70 0d |;;; atta|ck.lisp.|
|00000090| 3b 3b 3b 0d 3b 3b 3b 20 | 43 4f 4e 51 55 45 53 54 |;;;.;;; |CONQUEST|
|000000a0| 20 41 49 20 50 52 4f 4a | 45 43 54 0d 3b 3b 3b 0d | AI PROJ|ECT.;;;.|
|000000b0| 3b 3b 3b 20 57 61 73 68 | 69 6e 67 74 6f 6e 20 55 |;;; Wash|ington U|
|000000c0| 6e 69 76 65 72 73 69 74 | 79 20 43 6f 6d 70 75 74 |niversit|y Comput|
|000000d0| 65 72 20 53 63 69 65 6e | 63 65 20 44 65 70 61 72 |er Scien|ce Depar|
|000000e0| 74 6d 65 6e 74 0d 3b 3b | 3b 20 43 6f 70 79 72 69 |tment.;;|; Copyri|
|000000f0| 67 68 74 20 31 39 39 32 | 20 50 61 75 6c 20 4d 63 |ght 1992| Paul Mc|
|00000100| 43 61 72 74 6e 65 79 2e | 20 20 41 6c 6c 20 52 69 |Cartney.| All Ri|
|00000110| 67 68 74 73 20 52 65 73 | 65 72 76 65 64 2e 0d 3b |ghts Res|erved..;|
|00000120| 3b 3b 0d 3b 3b 3b 20 41 | 55 54 48 4f 52 3a 0d 3b |;;.;;; A|UTHOR:.;|
|00000130| 3b 3b 0d 3b 3b 3b 20 44 | 45 53 43 52 49 50 54 49 |;;.;;; D|ESCRIPTI|
|00000140| 4f 4e 3a 0d 3b 3b 3b 0d | 3b 3b 3b 20 54 68 69 73 |ON:.;;;.|;;; This|
|00000150| 20 66 69 6c 65 20 69 73 | 20 61 20 70 6c 61 79 65 | file is| a playe|
|00000160| 72 27 73 20 61 74 74 61 | 63 6b 20 6d 6f 64 75 6c |r's atta|ck modul|
|00000170| 65 2c 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 63 6f |e, conta|ining co|
|00000180| 64 65 20 66 6f 72 20 64 | 65 74 65 72 6d 69 6e 69 |de for d|etermini|
|00000190| 6e 67 0d 3b 3b 3b 20 61 | 6e 20 61 74 74 61 63 6b |ng.;;; a|n attack|
|000001a0| 20 61 67 61 69 6e 73 74 | 20 61 20 70 6c 61 79 65 | against| a playe|
|000001b0| 72 27 73 20 61 64 6a 61 | 63 65 6e 74 20 65 6e 65 |r's adja|cent ene|
|000001c0| 6d 79 2e 0d 3b 3b 3b 0d | 3b 3b 3b 20 55 53 45 3a |my..;;;.|;;; USE:|
|000001d0| 0d 3b 3b 3b 0d 3b 3b 3b | 20 44 65 66 69 6e 65 20 |.;;;.;;;| Define |
|000001e0| 74 68 65 20 6d 65 74 68 | 6f 64 20 63 61 6c 6c 65 |the meth|od calle|
|000001f0| 64 20 22 61 74 74 61 63 | 6b 22 2e 20 20 54 68 69 |d "attac|k". Thi|
|00000200| 73 20 6d 65 74 68 6f 64 | 20 77 69 6c 6c 20 62 65 |s method| will be|
|00000210| 20 63 61 6c 6c 65 64 20 | 66 72 6f 6d 20 74 68 65 | called |from the|
|00000220| 0d 3b 3b 3b 20 63 6f 6e | 74 72 6f 6c 20 6f 62 6a |.;;; con|trol obj|
|00000230| 65 63 74 20 61 73 20 6e | 65 65 64 65 64 2e 0d 3b |ect as n|eeded..;|
|00000240| 3b 3b 0d 0d 28 69 6e 2d | 70 61 63 6b 61 67 65 20 |;;..(in-|package |
|00000250| 3a 72 6a 6b 31 29 0d 0d | 0d 3b 3b 3b 20 54 6f 20 |:rjk1)..|.;;; To |
|00000260| 6f 76 65 72 72 69 64 65 | 20 74 68 65 20 64 65 66 |override| the def|
|00000270| 61 75 6c 74 20 22 62 61 | 73 69 63 2d 70 6c 61 79 |ault "ba|sic-play|
|00000280| 65 72 22 20 62 65 68 61 | 76 69 6f 72 2c 20 72 65 |er" beha|vior, re|
|00000290| 70 6c 61 63 65 20 74 68 | 65 20 22 63 61 6c 6c 2d |place th|e "call-|
|000002a0| 6e 65 78 74 2d 6d 65 74 | 68 6f 64 22 0d 3b 3b 3b |next-met|hod".;;;|
|000002b0| 20 63 61 6c 6c 20 77 69 | 74 68 20 63 6f 64 65 20 | call wi|th code |
|000002c0| 74 6f 20 64 65 63 69 64 | 65 20 61 6e 20 61 74 74 |to decid|e an att|
|000002d0| 61 63 6b 20 6d 6f 76 65 | 2e 20 20 54 68 69 73 20 |ack move|. This |
|000002e0| 6d 65 74 68 6f 64 20 73 | 68 6f 75 6c 64 20 72 65 |method s|hould re|
|000002f0| 74 75 72 6e 3a 0d 3b 3b | 3b 0d 3b 3b 3b 20 20 20 |turn:.;;|;.;;; |
|00000300| 20 20 28 3c 61 74 74 61 | 63 6b 65 72 2d 63 6f 75 | (<atta|cker-cou|
|00000310| 6e 74 72 79 3e 20 3c 64 | 65 66 65 6e 64 65 72 2d |ntry> <d|efender-|
|00000320| 63 6f 75 6e 74 72 79 3e | 29 20 20 4f 52 20 20 27 |country>|) OR '|
|00000330| 66 6f 72 74 69 66 79 0d | 3b 3b 3b 0d 28 64 65 66 |fortify.|;;;.(def|
|00000340| 6d 65 74 68 6f 64 20 61 | 74 74 61 63 6b 20 28 28 |method a|ttack ((|
|00000350| 70 6c 61 79 65 72 20 72 | 6a 6b 31 2d 70 6c 61 79 |player r|jk1-play|
|00000360| 65 72 29 20 74 75 72 6e | 29 0d 20 20 28 63 61 6c |er) turn|). (cal|
|00000370| 6c 2d 6e 65 78 74 2d 6d | 65 74 68 6f 64 20 70 6c |l-next-m|ethod pl|
|00000380| 61 79 65 72 20 74 75 72 | 6e 29 29 00 00 00 00 00 |ayer tur|n)).....|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 01 00 00 00 01 7d | 00 00 00 7d 00 00 00 52 |.......}|...}...R|
|00000410| 04 6f 20 40 f0 00 42 04 | 01 11 8d 0f 80 cd f4 d8 |.o @..B.|........|
|00000420| 86 2d 7c f1 05 05 f4 cc | ab 89 cd bb 9a e2 01 9b |.-|.....|........|
|00000430| 0b 61 74 74 61 63 6b 2e | 6c 69 73 70 02 00 00 00 |.attack.|lisp....|
|00000440| 54 45 58 54 43 43 4c 32 | 01 00 00 14 00 00 00 00 |TEXTCCL2|........|
|00000450| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 14 00 00 |..TEXTCC|L2......|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 a7 0f 09 fd 00 00 | 03 0b 00 00 01 cf dc 8d |........|........|
|00000480| 80 8c e3 e1 3d 03 00 00 | 08 06 10 03 6f 25 79 00 |....=...|....o%y.|
|00000490| 00 03 00 27 01 8d 10 88 | fa a2 2e 02 24 41 cb 7c |...'....|....$A.||
|000004a0| 08 60 52 f6 51 80 c7 bf | f5 d2 b5 02 26 40 c7 f6 |.`R.Q...|....&@..|
|000004b0| bf f5 d2 b5 02 f1 00 23 | 95 b0 81 66 10 bb 00 7c |.......#|...f...||
|000004c0| 95 b0 8b 66 22 50 86 51 | 85 60 1c bb 00 23 95 b0 |...f"P.Q|.`...#..|
|000004d0| 8b 66 12 51 85 51 86 4a | 86 66 0a f6 e4 d7 ae cf |.f.Q.Q.J|.f......|
|000004e0| 2d 07 d6 f9 28 04 22 0a | f6 84 f5 02 ed 01 cb bd |-...(.".|........|
|000004f0| 67 0a 22 0a f6 8d 15 6a | 6e 8a eb 60 d0 ea 50 01 |g."....j|n..`..P.|
|00000500| 00 00 00 1a 00 02 00 14 | 0c 01 00 04 09 00 01 00 |........|........|
|00000510| 00 00 02 00 01 c3 01 00 | 01 d9 02 00 02 bc 00 00 |........|........|
|00000520| 00 0f 00 00 05 54 69 6d | 65 73 06 4d 6f 6e 61 63 |.....Tim|es.Monac|
|00000530| 6f 00 00 00 48 00 09 4d | 6f 6e 61 63 6f 00 00 00 |o...H..M|onaco...|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 06 00 08 00 2c 00 06 01 |........|....,...|
|00000560| b8 02 36 00 2c 00 06 01 | b8 02 36 00 00 00 00 00 |..6.,...|..6.....|
|00000570| 00 02 ea 00 00 02 ea 00 | 00 00 00 01 00 00 00 01 |........|........|
|00000580| 00 00 00 01 7d 00 00 00 | 7d 00 00 00 52 00 23 d0 |....}...|}...R.#.|
|00000590| 40 07 b8 00 00 00 1c 00 | 52 00 01 46 52 45 44 00 |@.......|R..FRED.|
|000005a0| 01 00 12 4d 50 53 52 00 | 00 00 2a 00 02 ff ff 00 |...MPSR.|..*.....|
|000005b0| 00 00 00 00 00 00 00 00 | 03 ff ff 00 00 00 1e 00 |........|........|
|000005c0| 00 00 00 03 ed ff ff 00 | 00 00 31 00 24 c3 b8 00 |........|..1.$...|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+